package com.cake.service.inter;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.cake.base.util.ReturnUtils;
import com.cake.entity.XxAdmin;
import com.cake.entity.XxMenu;
import com.cake.response.LoginResponse;
import com.cake.service.base.IBaseService;

public interface IXxAdminService extends IBaseService<XxAdmin>{
	
	/**
	 * 后台登录人员登陆
	 * @param userName
	 * @param passWord
	 * @return
	 */
	public LoginResponse loginForAdmin(XxAdmin XxAdmin, HttpServletRequest request);
	
	/**
	 *	查询用户拥有的菜单
	 * @param adminId
	 * @return
	 */
	public List<XxMenu> selectAdminMenus(Long adminId);
	
	/**
	 * 分页查询管理人员
	 * @param xxAdmin
	 * @return
	 * @throws Exception 
	 */
	public ReturnUtils selectSystemAdmins(XxAdmin xxAdmin) throws Exception;
	
	/**
	 * 根据id 查询管理员信息
	 * @param xxAdmin
	 * @return
	 */
	public ReturnUtils selectSystemAdminById(Long adminId);
	
}
